package com.itheima.dao;

import com.itheima.pojo.FileSort;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface FileSortMapper extends Mapper<FileSort> {

    /**
     * 根据类名查询uid
     * @param sortName
     * @return
     */
    @Select("select uid from t_file_sort where sort_name=#{sortName}")
    String getUidByFileSortName(@Param("SortName") String sortName);

    /**
     * 根据类名查询对象
     * @param sortName
     * @return
     */
    @Select("select * from t_file_sort where sort_name=#{sortName}")
    FileSort getUrlByFileSortName(@Param("SortName") String sortName);
}
